package com.jzh.dao;

import com.github.pagehelper.Page;
import com.jzh.pojo.CheckItem;
import com.jzh.pojo.Permission;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

/**
 * 权限Dao
 * @author jzh971018
 */
@Repository
public interface PermissionDao {
    Set<Permission> findByRoleId(Integer roleId);

    Page<CheckItem> selectByCondition(String queryString);

    void add(Permission permission);

    Permission findById(Integer id);

    long findCountByPermissionId(Integer id);

    void deleteById(Integer id);

    void edit(Permission permission);

    List<Permission> findAll();
}
